//
//  OtherDetailContactCell.swift
//  ImGuider X
//
//  Created by 陆涛 on 2018/9/29.
//  Copyright © 2018 imguider. All rights reserved.
//

import UIKit

class OtherDetailContactCell: UITableViewCell {
    
    @IBOutlet weak var contactDesLabel: UILabel!
    @IBOutlet weak var contactLabel: YYLabel!
    
    @IBOutlet weak var contactH: NSLayoutConstraint!
    override func awakeFromNib() {
        super.awakeFromNib()
        
        self.backgroundColor = kThemeBgColor
        contactLabel.numberOfLines = 0
        
        contactDesLabel.text = LocalizedString("find_us")
    }
    
    var contact:NSAttributedString? {
        
        didSet {
            
            contactLabel.attributedText = contact
            let height = contactLabel.sizeThatFits(CGSize(width: (kScreenWidth - 96), height: 10000)).height
            contactH.constant = height
        }
    }
    
}

